#include "server_tcp.hpp"
#include <memory>

int main(int argc,char *argv[])
{
    if(argc!=2)
    {
        std::cout<<"\n ./server_tcp port\n\n";
        exit(1);
    }

    std::unique_ptr<ServerTCP> server(new ServerTCP(atoi(argv[1])));

    server->init();
    server->start();

    return 0;
}